package com.ash.hello.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloConroller {

    @GetMapping("/{name}")
    public String say(@PathVariable String name){
        System.out.println(name);
        return "hi "+name;
    }
}
